def get_formatted_name(first_name, last_name):
    """返回整洁的名字"""
    full_name = first_name + ' ' + last_name
    return full_name.title()

print(get_formatted_name('one', 'two'))

def greet_users(users):
    for username in users:
        print('Hello, ' + username.title() + '!')

users = ['one', 'two', 'three', 'four']
greet_users(users)

def any_argument(size, *arguments):
    print(size)
    print(arguments)
    for argument in arguments:
        print(argument)

any_argument(12, 'one', 'two', 'three', 13)

def build_profile(first, last, **user_info):
    """创建一个字典，其中包含我们知道的有关用户的一切"""
    profile = {}
    profile['first_name'] = first
    profile['last_name'] = last
    for key, value in user_info.items():
        profile[key] = value
    return profile

profile = build_profile('one', 'two', location = 'Shanghai', field = 'Physics')
print(profile)
